package sctu.edu.java.year2016.team07.shihaocheng.day20160605.chapter11_3;

import java.util.Scanner;

/**
 * Created by admin on 2016/6/5.
 */
public class Computer {
    public static void count(double a, double b) throws Exception {

    if (a <0 || b < 0) {
        throw new Exception("please ensure the number > 0!");
    }

}

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);


        System.out.println("please enter a:");


        double a =scan.nextDouble();


        System.out.println("please enter b:");


        double b =scan.nextDouble();


        CalcMax it = new CalcMax();
        System.out.println(it.count(a,b));

    }
}
